package com.keba.lamp.complaint.vo.result;

import cn.hutool.core.map.MapUtil;
import com.keba.basic.annotation.echo.Echo;
import com.keba.basic.base.entity.Entity;
import com.keba.basic.interfaces.echo.EchoVO;
import com.keba.lamp.model.constant.EchoApi;
import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Map;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 表单查询方法返回值VO
 * 账户明细
 * </p>
 *
 * @author twg
 * @date 2025-05-15 20:30:52
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@Schema(description = "账户明细")
public class AccountDetailResultVO extends Entity<Long> implements Serializable, EchoVO {

    private static final long serialVersionUID = 1L;

    private Map<String, Object> echoMap = MapUtil.newHashMap();

    @Schema(description = "主键")
    private Long id;

    /**
    * 乐观锁
    */
    @Schema(description = "乐观锁")
    private Integer revision;
    /**
    * 是否删除，0-未删除，1-删除
    */
    @Schema(description = "是否删除，0-未删除，1-删除")
    private Integer isDel;
    /**
    * 流水号（唯一标识字符串）
    */
    @Schema(description = "流水号（唯一标识字符串）")
    private String code;
    /**
    * 账户code
    */
    @Schema(description = "账户code")
    private String accountCode;
    /**
    * 账户类型（1：预付款账户）
    */
    @Schema(description = "账户类型（1：预付款账户）")
    private Integer accountType;
    /**
    * 租户id
    */
    @Schema(description = "租户id")
    @Echo(api = EchoApi.DEF_TENANT_SERVICE_IMPL_CLASS)
    private Long tenantId;
    /**
    * 金额
    */
    @Schema(description = "金额")
    private BigDecimal amount;
    /**
    * 余额
    */
    @Schema(description = "余额")
    private BigDecimal balance;
    /**
    * 业务类别（数据字典）
    */
    @Schema(description = "业务类别（数据字典）")
    private String bizType;
    /**
    * 类型（1：充值，2：消费，3：冲销）
    */
    @Schema(description = "类型（1：充值，2：消费，3：冲销）")
    private Integer type;
    /**
    * 收支类型（1：收入，2：支出）
    */
    @Schema(description = "收支类型（1：收入，2：支出）")
    private Integer incomeExpenseType;
    /**
    * 案件id
    */
    @Schema(description = "案件id")
    private Long caseId;
    /**
    * 业务创建时间
    */
    @Schema(description = "业务创建时间")
    private LocalDateTime bizTime;
    /**
    * 入账时间
    */
    @Schema(description = "入账时间")
    private LocalDateTime bookingTime;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    @Schema(description = "业务描述")
    private String bizDesc;

    @Schema(description = "账户名称")
    private String accountName;



}
